<template>
  <div class="search-head">
    <div class="flex head-body">
      <div class="goback">
        <van-icon @click="$router.push(goback.path)" name="arrow-left" />
      </div>
      <h2>{{ goback.title }}</h2>
    </div>
  </div>
</template>

<script>
export default {
  props: ["goback"],
  data() {
    return {};
  },
};
</script>
 
<style lang = "less" scoped>
.search-head {
  height: 128px;
  width: 100%;
  background: #153399;
  text-align: center;
  line-height: 128px;
  color: #fff;
  .head-body {
    align-items: center;
  }
  .goback {
    margin-left: 24px;
    .van-icon-arrow-left {
      font-size: 36px;
    }
  }
  h2 {
    font-size: 36px;
    padding-left: 285px;
  }
}
</style>